package designpattern.demo.structural.proxypattern;

import designpattern.demo.structural.proxypattern.starstudio.Agent;
import designpattern.demo.structural.proxypattern.starstudio.IStar;
import designpattern.demo.structural.proxypattern.starstudio.Singer;

public class Main {
    public static void main(String[] args) {
        //崇拜的明星是谁
        IStar star = new Singer();
        //找到明星的经纪人
        IStar agent = new Agent(star);
        System.out.println("追星族：我是你的崇拜者，请签名！");
        //签字
        agent.sign();
    }
}
